﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace CommonLib.Audio
{
	/// <summary>
	/// 声音管理系统接口
	/// </summary>
	public interface IAudioSystem
	{
		//void Init(AudioManagerBase manager);

		void Init(AudioManagerBase manager, List<string> groupNeedSave = null);

		void Play(string group, string label, AudioDataBase data, float fadein, float fadeout);

		void Stop(string group, string label, float fadeout);

		bool IsPlaying(string group, string label);

		AudioSource GetAudioSourceByLabel(string group, string label);

		float GetVolumeByLabel(string group, string label);

		void StopGroup(string group, float fadeout);

		void StopGroupAll(string group, float fadeout);

		void StopAll(float fadeout);
	}
}